import useRequestInterceptor from "@/hooks/useRequestInterceptor";
import { PropsWithChildren } from "react";

const RouterWrap = (props: PropsWithChildren) => {
    const { done } = useRequestInterceptor();
    // 确保拦截器添加完毕再渲染子组件
    // return props.children
    return <>{done ? props.children : null}</>;
};

export default RouterWrap;
